package co.yixiang.modules.shop.service.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 订单门店商品信息
 */
@Data
public class OrderShopItemDto {

    @ApiModelProperty(value = "门店id")
    private Long shopId;
    @ApiModelProperty(value = "门店名称")
    private String  shopName;

    /** 订单商品总数 */
    @ApiModelProperty(value = "订单商品总数")
    private Integer totalNum = 0;

    @ApiModelProperty(value = "总价 不包含邮费")
    private BigDecimal totalPrice = BigDecimal.valueOf(0);

    @ApiModelProperty(value = "总邮费")
    private BigDecimal totalPostage = BigDecimal.valueOf(0);

    @ApiModelProperty(value = "抵扣总金额")
    private BigDecimal deductionPrice = BigDecimal.valueOf(0);

    @ApiModelProperty(value = "实际金额")
    private BigDecimal payPrice = BigDecimal.valueOf(0);

    @ApiModelProperty(value = "订单商品项信息")
    private List<OrderItemDto> orderItemDtos;

    public OrderShopItemDto() {
        orderItemDtos=new ArrayList<>();
    }
}
